package nc.bs.sync.nuonuo.servlet;

import javax.servlet.http.HttpServletRequest;

import nc.bs.framework.common.NCLocator;
import nc.itf.so.m32.nuonuo.InvoicingCallBackService;
import nc.vo.pub.BusinessException;
import nc.vo.so.nuonuo.dto.CallBackDTO;

public class NuoNuoCallBackServlet extends NuoNuoNCAbstractServlet {

	@Override
	protected Object doBusiness(HttpServletRequest request, CallBackDTO callBackDTO) throws BusinessException {
		if(null == callBackDTO)
			return null;
		String operater = callBackDTO.getOperater();
		if("callback".equals(operater)) {
			NCLocator.getInstance().lookup(InvoicingCallBackService.class).invoicingResultCallback(callBackDTO);
		}
		return null;
	}

}
